
obj-$(CONF_AT91SAM9261) += nand_at91sam9261.o
obj-$(CONF_AT91SAM9263) += nand_at91sam9263.o

obj-$(CONF_S3C2410) += nand_s3c2410.o
obj-$(CONF_S3C2440) += nand_s3c2440.o

OBJS_C = flash_api.o flash_base.o part_base.o nand_core.o nand_bbt.o nand_ecc.o nand_ids.o
OBJS_C += $(obj-y)
SRCS_C := $(OBJS_C:.o=.c)

all: $(BUILT_IN_OBJ)

$(BUILT_IN_OBJ): $(OBJS_C)
	$(LD) $(LDFLAGS) -r $^ -o $@ 

$(OBJS_C): $(SRCS_C)
	$(CC) $(CFLAGS) -c $(SRCS_C)

clean :
	@rm -vf *.o

